-- GENERATED SPELL FOR [Shadowforge Darkweaver] --


function spell0_2740(pUnit, Event) --@Amplify Flames,n/a--
pUnit:FullCastSpellOnTarget(9482,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2740', 31000, 1)
end

function spell1_2740(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(20825,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2740', 3000, 1)
end

function Sorts_2740(pUnit, Event)
local choix_sorts_2740 = math.random(0, 1)
if choix_sorts_2740 == 0 then
pUnit:RegisterEvent('spell0_2740', 1, 1)
end
if choix_sorts_2740 == 1 then
pUnit:RegisterEvent('spell1_2740', 1, 1)
end
end

function mob2740_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2740', math.random(1500, 3000), 1)
end

function mob2740_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2740_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2740_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2740, 1, 'mob2740_Action')
RegisterUnitEvent(2740, 2, 'mob2740_Leave')
RegisterUnitEvent(2740, 3, 'mob2740_Kill')
RegisterUnitEvent(2740, 4, 'mob2740_Die')
